<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>增加供货商</title>
		<link rel="stylesheet" href="../../lib/layui-v2.6.3/css/layui.css" media="all">
		<link rel="stylesheet" href="../../css/public.css" media="all">
	</head>
	<body>
		<form class="layui-form" id="editsupplier" lay-filter="editsupplier">
				<input type="hidden" name="supId" />
			<div class="layui-row layui-panel" style="padding:15px;">
				<div class="layui-col-md6">
					<div class="layui-form-item">
					    <label class="layui-form-label"   style="width: 90px;"	>供货商名称：</label>
					    <div class="layui-input-inline"  >
					      <input type="text" name="supName" autocomplete="off" placeholder="请输入供货商名称" class="layui-input" >
					    </div>
					</div>
				</div>
				<div class="layui-col-md6">
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 90px;"	>供货商类型：</label>
						<div class="layui-input-inline">
							<select name="supType" lay-filter="supType">
								<option value=""></option>
								<option value="0">写作</option>
								<option value="1">阅读</option>
								<option value="2">游戏</option>
								<option value="3">音乐</option>
								<option value="4">旅行</option>
							</select>
						</div>
						<i class="layui-icon layui-icon-add-circle" style="font-size: 28px;color: #C2C2C2;display:inline-block;margin-top: 4px;"></i>
					</div>
				</div>
				<div class="layui-col-md6">
					<div class="layui-form-item">
						<label class="layui-form-label">所属地区：</label>
						<div class="layui-input-block">
							<select name="supRegion" lay-filter="supRegion">
								<option value=""></option>
								<option value="0">写作</option>
								<option value="1">阅读</option>
								<option value="2">游戏</option>
								<option value="3">音乐</option>
								<option value="4">旅行</option>
							</select>
						</div>
					</div>
				</div>
				<div class="layui-col-md6">
					<div class="layui-form-item">
						<label class="layui-form-label">联系地址：</label>
						<div class="layui-input-block">
							<input type="text" name="supAddress" autocomplete="off" placeholder="请输入联系地址" class="layui-input">
						</div>
					</div>
				</div>
				<div class="layui-col-md6">
					<div class="layui-form-item">
						<label class="layui-form-label">联系人：</label>
						<div class="layui-input-block">
							<input type="text" name="supPeople" autocomplete="off" placeholder="请输入联系人" class="layui-input">
						</div>
					</div>
				</div>
				<div class="layui-col-md6">
					<div class="layui-form-item">
						<label class="layui-form-label">联系电话：</label>
						<div class="layui-input-block">
							<input type="text" name="supPhone" autocomplete="off" placeholder="请输入联系电话" class="layui-input">
						</div>
					</div>
				</div>
				<div class="layui-col-md12">
					<div class="layui-form-item">
						<label class="layui-form-label">备注：</label>
						<div class="layui-input-block">
							<input type="text" name="title" autocomplete="off" placeholder="请输入相关备注" class="layui-textarea">
						</div>
					</div>
				</div>
				<div class="layui-col-md6">
					<div class="layui-form-item">
						<label class="layui-form-label">初期应付：</label>
						<div class="layui-input-block">
							<input type="text" name="title" autocomplete="off" placeholder="￥0.00" class="layui-input">
							<span class="layui-font-red">(新增此供货商时，我方目前欠此供货商的贷款金额)</span>
						</div>
					</div>
				</div>
				<div class="layui-col-md6">
					<div class="layui-form-item">
						<div class="layui-input-block">
							<input type="checkbox" name="" title="默认供货商" lay-skin="primary"> 
						</div>
					</div>
				</div>
				<div class="layui-col-md12" style="text-align: center;">
					<div class="layui-btn-container">
					  <button type="button" class="layui-btn" lay-submit lay-filter="saveBtn">保存</button>
					</div>
				</div>
			</div>
		</form>
		
		<script src="../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
		<script>
			layui.use(['form', 'layer'],function(){
				var $ = layui.jquery,
					form = layui.form,
					layer = layui.layer,
					laydate = layui.laydate;
				
			
				
				//时间控件（出生日期）
				laydate.render({
					elem: '#custStartDate',
					value: new Date(),
					isInitValue: true	//用于控制是否自动向元素填充初始值（需配合 value 参数使用），默认为 true
				});
				form.on('submit(saveBtn)', function (data) {
					//控制台输出保存的信息
					//console.log(JSON.stringify(data.field))
							
					//关闭弹窗
					var iframeIndex = parent.layer.getFrameIndex(window.name);
					parent.layer.close(iframeIndex);
				});
				
			
			});
		</script>
	</body>
</html>
